from fastapi import APIRouter, Depends
from sqlalchemy.orm import Session
from base_db.api.deps import get_db

router = APIRouter()


@router.post("/api/flights", description="获取所有计划信息")
def get_flights(db: Session = Depends(get_db)):
    flights = db.query(TabFpl).all()
    return flights
